package com.qian.api.ddj.model;

import lombok.Data;

import java.math.BigDecimal;
import java.util.Map;
import java.util.TreeMap;

/**
 * 代付model
 */
@Data
public class WithdrawModel {

    private String userId;//商户号
    private String person;//持卡人
    private String cardNo;//卡号
    private String bank;//银行
    private String phone;//手机号
    private String outOrderNo;//下游订单号
    private BigDecimal amount;//代付金额
    private String bankBranchName;//支行名称
    private String province;//开户省
    private String city;//开户市
    private String sign;//数字签名

    public Map<String,String> getMap(){
        Map<String,String> map = new TreeMap<>();
        map.put("userId",userId);
        map.put("person",person);
        map.put("cardNo",cardNo);
        map.put("bank",bank);
        map.put("phone",phone);
        map.put("outOrderNo",outOrderNo);
        map.put("amount",amount.toString());
        map.put("bankBranchName",bankBranchName);
        map.put("province",province);
        map.put("city",city);
        map.put("sign",sign);

        return map;
    }

}
